package com.example.demo.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data

public class Book {
    private String id;
    private String name;
    private String author;
    private String subject;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date publish;

    public Book() {
    }
}
